<div class="form">


    <p class="note"><?php echo Yii::t("UserModule.user", 'Fields with <span class="required">*</span> are required.'); ?></p>

    <?php
    echo CHtml::beginForm();
    ////echo CHtml::errorSummary($model);
    //  echo CHtml::errorSummary($profile); 
    ?>

    <div class="row">
        <?php echo CHtml::activeLabelEx($model, 'username'); ?>
        <?php echo CHtml::activeTextField($model, 'username', array('size' => 20, 'maxlength' => 20)); ?>
<?php echo CHtml::error($model, 'username'); ?>
    </div>

    <div class="row">
        <?php echo CHtml::activeLabelEx($model, 'password'); ?>
        <?php echo CHtml::activePasswordField($model, 'password', array('size' => 60, 'maxlength' => 128)); ?>
<?php echo CHtml::error($model, 'password'); ?>
    </div>

    <!--	<div class="row">
    <?php //echo CHtml::activeLabelEx($model,'superuser'); ?>
    <?php // echo CHtml::activeDropDownList($model,'superuser',User::itemAlias('AdminStatus')); ?>
<?php //echo CHtml::error($model,'superuser');  ?>
            </div>-->

    <div class="row">
        <?php echo CHtml::activeLabelEx($model, 'status'); ?>
        <?php echo CHtml::activeDropDownList($model, 'status', User::itemAlias('UserStatus')); ?>
<?php echo CHtml::error($model, 'status'); ?>
    </div>

    <div class="row buttons">
        <?php
        echo CHtml::submitButton($model->isNewRecord ? Yii::t('UserModule.user', 'Create') : Yii::t('UserModule.user', 'Save'));
        ?>
    </div>

<?php echo CHtml::endForm(); ?>

</div><!-- form -->
